package com.frcdi.qms.equipment.domain;

import com.frcdi.qms.common.annotation.Excel;
import com.frcdi.qms.common.core.domain.TreeEntity;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备类型对象 md_equipment_type
 *
 * @author cell
 * @date 2023-10-10
 */
@ApiModel(value = "设备类型对象")
public class EquipmentType extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备类型id */
    private Long typeId;

    /** 设备类型编号 */
    @Excel(name = "设备类型编号")
    private String equipmentTypeNo;

    /** 设备类型名称 */
    @Excel(name = "设备类型名称")
    private String equipmentTypeName;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setTypeId(Long typeId)
    {
        this.typeId = typeId;
    }

    public Long getTypeId()
    {
        return typeId;
    }
    public void setEquipmentTypeNo(String equipmentTypeNo)
    {
        this.equipmentTypeNo = equipmentTypeNo;
    }

    public String getEquipmentTypeNo()
    {
        return equipmentTypeNo;
    }
    public void setEquipmentTypeName(String equipmentTypeName)
    {
        this.equipmentTypeName = equipmentTypeName;
    }

    public String getEquipmentTypeName()
    {
        return equipmentTypeName;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("typeId", getTypeId())
            .append("equipmentTypeNo", getEquipmentTypeNo())
            .append("equipmentTypeName", getEquipmentTypeName())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("description", getDescription())
            .append("status", getStatus())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .toString();
    }
}
